﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;
using System.Net;
using System.Text.RegularExpressions;

namespace TVGuide.Common
{
    public class Utills
    {
        public static void SedndNotificationMail(string message)
        {

            var client = new SmtpClient("smtp.gmail.com", 587)
            {
                Credentials = new NetworkCredential("arm.tvguide@gmail.com", "tvguidearm"),
                EnableSsl = true
            };
            client.Send("arm.tvguide@gmail.com", "arm.tvguide@gmail.com", "Failed action", message);
        }
        public static string removeHTMLTags(string input)
        {
            Regex rgxTagCutter = new Regex("</?[^>]*>");
            string stringWithoutTags = rgxTagCutter.Replace(input, "");
            return stringWithoutTags;
        }
    }
}
